﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Calculate
    {
        protected int a;
        protected int b;
        public int A
        {
            get { return this.a; }
            set { this.a = value; }
        }
        public int B
        {
            get { return this.b; }
            set { this.b = value; }
        }
        public void SayHi()
        {
            Console.WriteLine("请输入第一个整数:");
            a = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个整数:");
            b = int.Parse(Console.ReadLine());
        }
        public virtual void DisplayResult()
        {
            
        }
    }
}
